'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
// module.exports = app => {
//   const { router, controller } = app;
//   router.get('/', controller.home.index);
//   router.get('/list',controller.home.list)
// };
module.exports = app => {
  // 相当于把./router/default的代码引入过来代替上面注释的代码前台显示的接口
  require('./router/default')(app);
  // ./router/admin文件引入后台管理员的接口
  require('./router/admin')(app);
  // require('./router/admin.js')(app)
}
